package com.cherry.mybatis.dao;

import com.cherry.mybatis.Blog;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BlogMapper {


    int addBlog(Blog blog);

    List<Blog> queryByName(@Param("title") String title, @Param("author") String author);

    Blog queryById(String id);

    int updateBlog(Blog blog);

    List<Blog> queryChoose(Map<String,Object> map);

    List<Blog> queryForeach(List<String> titles);

}
